package com.zero.qth.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zero.common.annotation.excel.Excel;
import lombok.Data;

import java.util.Date;

@Data
public class CouponUserVo {

    /** ID */
    @Excel(name = "ID")
    private Long id;

    /** 优惠券ID */
    @Excel(name = "优惠券ID")
    private Long couponId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;

    /** 是否使用（0否 1是） */
    @Excel(name = "是否使用", readConverterExp = "0=否,1=是")
    private Integer isUsed;

    /** 领取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "领取时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date receiveTime;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date useTime;

    /*连表字段*/
    private String couponName;
    private String username;
    private String phone;
}
